package com.examsage.examsage.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author examsage
 * @since 2025-07-02
 */
@Getter
@Setter
@TableName("course")
public class Course implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 唯一标识
     */
    @TableField("course_code")
    private String courseCode;

    /**
     * 课程全称
     */
    @TableField("course_name")
    private String courseName;

    /**
     * 课程学分
     */
    @TableField("credits")
    private BigDecimal credits;

    /**
     * 如 公共基础课
     */
    @TableField("course_type")
    private String courseType;

    /**
     * 自动生成
     */
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 自动更新
     */
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;
}
